home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / OTLookupNameTest / Read Me About OTLookupNameTest < prev   
Encoding:
Text File  |  2000-09-28  |  2.2 KB  |  47 lines  |  [TEXT/ttxt]

  1. Read Me About OTLookupNameTest
  2.  
  3. 1.0d1
  4.  
  5. This sample demonstrates the use of an NBP mapper to look up NBP entities on an AppleTalk network using Open Transport.  The code from this sample is featured in the latest release (v1.2) of the book “Inside Macintosh: Open Transport”.
  6.  
  7. Packing List
  8.  
  9. The package contains the following items items: 
  10.  
  11. • OTLookupNameTest-PPC.µ — A project to build the PPC version. 
  12. • OTLookupNameTest-PPC — A compiled version of the above.
  13. • OTLookupNameTest-68K.µ — A project to build the 68K version.
  14. • OTLookupNameTest-68K — A compiled version of the above.
  15.  
  16. • OTLookupNameTest.c — Source code common to both projects.
  17.  
  18. Sample Requirements
  19.  
  20. I tested this code with OT 1.2 running under Mac OS 8 on both 68K and PPC.  The code should run just fine with OT 1.1.1 or newer.  I do not support this code on OT versions prior to 1.1.1.
  21.  
  22. There is a bug in OT 1.2 and earlier that prevents the 68K version of this sample from running on PPC machines.  The specific problem is that OTUseSyncIdleEvents crashes when called from 68K code on a PPC.  This bug has been fixed in OT 1.3.
  23.  
  24. Running the Sample
  25.  
  26. To run the sample, simply double click the application and read the output on the console window.  The sample looks up and prints information about all the AppleShare file servers in your AppleTalk zone.  If you don’t have any AppleShare file servers in your zone, you can modify the requestAddress variable in the main function to look up some other type of NBP entity.
  27.  
  28. Building the Sample
  29.  
  30. The sample was built using the Metrowerks CodeWarrior 11 environment and the Open Transport 1.1.1 SDK interfaces and libraries.
  31.  
  32. To rebuild the sample, first open the project and change the “LatestInterfaces” and “LatestLibraries” access paths to point to the interfaces and libraries from the OT 1.1.1 (or newer) SDK.  Then choose Make from the Project menu.
  33.  
  34. Credits and Version History
  35.  
  36. If you find any problems with this sample, mail <DevSupport@apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.
  37.  
  38. Version 1.0d1 is the first release.
  39.  
  40. Share and Enjoy
  41.  
  42. Quinn “The Eskimo!”
  43. Apple Developer Technical Support
  44. Networking, Communications, Hardware
  45.  
  46. 2 Sep 1997
  47.